// 导入主题
@import "../styles/themes.scss";

.unit-converter {
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-color);
  padding-bottom: 40px;
  font-size: 28px;
  transition: background-color 0.3s ease, color 0.3s ease;

  .converter-header {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 20px;

    .header-title {
      font-size: 36px;
      font-weight: bold;
      color: var(--primary-color);
    }
  }

  .converter-container {
    padding: 0 16px;
  }

  .taroify-cell-group {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);

    .taroify-cell-group__title {
      font-size: 28px;
      color: var(--text-primary-color);
      font-weight: 500;
      padding: 16px;
    }
  }

  .taroify-cell {
    background-color: var(--card-bg-color) !important;

    .taroify-cell__title {
      color: var(--text-primary-color);
      font-size: 28px;
    }

    &::after {
      border-bottom-color: var(--border-color) !important;
    }
  }

  .taroify-field__label {
    color: var(--text-primary-color);
  }

  .taroify-input {
    color: var(--text-primary-color);
    font-size: 28px;

    &::placeholder {
      color: #999;
    }
  }

  .radio-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;

    .taroify-radio {
      margin-right: 12px;
      margin-bottom: 12px;
    }
  }

  .button-container {
    margin: 24px 0;
    padding: 0 16px;

    .taroify-button {
      height: 88px;
      font-size: 32px;
      border-radius: 44px;
      background: var(--button-bg) !important;
      border: none !important;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
  }

  .result-container {
    margin-top: 20px;

    .taroify-cell-group__title {
      color: var(--text-primary-color);
    }

    .result-cell {
      padding: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .result-label {
        font-size: 28px;
        color: var(--text-primary-color);
      }

      .result-value {
        font-size: 32px;
        font-weight: 500;
        color: var(--primary-color);
      }
    }
  }
}

// 覆盖Taroify Tabs组件样式
.taroify-tabs__tab {
  font-size: 28px !important;
  color: var(--text-secondary-color) !important;

  &--active {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
  }
}

.taroify-tabs__line {
  background-color: var(--primary-color) !important;
}

// 覆盖Radio组件样式
.taroify-radio__icon--checked {
  color: var(--primary-color) !important;
}

.taroify-radio__icon--checked .taroify-icon {
  color: var(--primary-color) !important;
}

.taroify-radio__label {
  font-size: 24px !important;
  color: var(--text-primary-color) !important;
}
